package com.thenerdtv.lolwut;

import android.app.TabActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.widget.TabHost;

public class MainActivity extends TabActivity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setRequestedOrientation(1); 
        
      //Begins TabHost
        TabHost tabHost = getTabHost();
 
        LayoutInflater.from(this).inflate(R.layout.main, tabHost.getTabContentView(), true);
 
        tabHost.addTab(tabHost.newTabSpec("tab1")
                .setIndicator("Facts!")
                .setContent(R.id.facts));
        tabHost.addTab (tabHost.newTabSpec("tab2")
                .setIndicator("About")
                .setContent(new Intent(this,AboutActivity.class )));
    }
}